
package com.flashextended.apps.logomaker.singleton
{
	import com.flashextended.apps.logomaker.LogoMaker;
	import com.flashextended.apps.logomaker.view.core.workarea.Workarea;
	import com.flashextended.apps.logomaker.view.windows.properties.GenericProperties;
	
	public class AppControl
	{
		private static var appControl:AppControl;
		
		public function AppControl()
		{
		}
		
		public static function getInstance():AppControl
		{
			if(appControl==null)
			{
				appControl = new AppControl();
			}
			return appControl;
		}
		
		
		private var _workarea:Workarea;
		/**
		 * Setter & Getter for the Workarea.as
		 */ 
		public function set workarea(w:Workarea):void
		{
			_workarea = w;
		}
		public function get workarea():Workarea
		{
			return _workarea;
		}
		
		private var _properties:GenericProperties;
		/**
		 * Setter & Getter for the PropertiesW.as
		 */ 
		public function set properties(p:GenericProperties):void
		{
			_properties = p;
		}
		public function get properties():GenericProperties
		{
			return _properties;
		}
		
		private var _logoMaker:LogoMaker;
		/**
		 * Setter & Getter for the PropertiesW.as
		 */ 
		public function set logoMaker(app:LogoMaker):void
		{
			_logoMaker = app;
		}
		public function get logoMaker():LogoMaker
		{
			return _logoMaker;
		}				

	}
}